package com.zyg.rm.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * ------------------------------
 * 作者: LMY
 * 类-功能: XX
 * 创建时间: 2021-11-08 19:57
 * ------------------------------
 **/
@RabbitListener(queues = "shz")
@Component
public class Listener03 {

    @RabbitHandler
    public void getMessage(String message){
        System.out.println("shz收到topic = " + message);
    }
}
